package com.ruoyi.swimming.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.swimming.domian.Activity;

import java.util.List;

/**
 * 活动Mapper接口
 * 
 * @author ruoyi
 * @date 2021-07-17
 */
public interface ActivityMapper extends BaseMapper<Activity>
{
    /**
     * 查询活动
     * 
     * @param id 活动ID
     * @return 活动
     */
    public Activity selectActivityById(Long id);

    /**
     * 查询活动列表
     * 
     * @param activity 活动
     * @return 活动集合
     */
    public List<Activity> selectActivityList(Activity activity);
}
